/*
 * @Author: your name
 * @Date: 2021-08-25 14:02:08
 * @LastEditTime: 2021-09-24 13:49:42
 * @LastEditors: wei_jt@ecidi.com
 * @Description: In User Settings Edit
 * @FilePath: \central-system\src\modules\SystemDemonstration\pdfSignature\api.js
 */
import request from '@/utils/request'
export function sign (data, params) {
  return request({
    url: '/sys-signature/contract/complete',
    method: 'POST',
    data: data,
    params: params
  })
}
export function upload (data) {
  return request({
    url: '/sys-signature/upload',
    method: 'POST',
    data,
    timeout: 0
  })
}
export function preview (params) {
  return request({
    url: '/sys-signature/contract/url',
    method: 'GET',
    params: params
  })
}
export function getFlow (params) {
  return request({
    url: '/sys-signature/flow',
    method: 'GET',
    params: params
  })
}
export function getUserName (params) {
  return request({
    url: '/sys-user/user/user_name',
    method: 'GET',
    params: params
  })
}
